<div class="regularTransactions view">
    <h2><?php __('Regular Transaction'); ?></h2>
    <dl><?php $i = 0;
$class = ' class="altrow"'; ?>
        <dt<?php if ($i % 2 == 0)
    echo $class; ?>><?php __('Id'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
<?php echo $regularTransaction['RegularTransaction']['id']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
    echo $class; ?>><?php __('User'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
    echo $class; ?>>
            <?php echo $this->Html->link($regularTransaction['User']['name'], array('controller' => 'users', 'action' => 'view', $regularTransaction['User']['id'])); ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                echo $class; ?>><?php __('Account'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
<?php echo $this->Html->link($regularTransaction['Account']['name'], array('controller' => 'accounts', 'action' => 'view', $regularTransaction['Account']['id'])); ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
    echo $class; ?>><?php __('Interval'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
    echo $class; ?>>
            <?php echo $regularTransaction['RegularTransaction']['interval']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                echo $class; ?>><?php __('Delay'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
<?php echo $regularTransaction['RegularTransaction']['delay']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
    echo $class; ?>><?php __('Name'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
    echo $class; ?>>
<?php echo $regularTransaction['RegularTransaction']['name']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
    echo $class; ?>><?php __('Amount'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
    echo $class; ?>>
<?php echo $regularTransaction['RegularTransaction']['amount']; ?>
            &nbsp;
        </dd>
    </dl>
    <div class="related">
        <h3><?php __('Related Transactions'); ?></h3>
            <?php if (!empty($regularTransaction['Transaction'])): ?>
            <table cellpadding = "0" cellspacing = "0">
                <tr>
                    <th><?php __('Id'); ?></th>
                    <th><?php __('User Id'); ?></th>
                    <th><?php __('Account Id'); ?></th>
                    <th><?php __('Name'); ?></th>
                    <th><?php __('Amount'); ?></th>
                    <th><?php __('Verified'); ?></th>
                    <th><?php __('Created'); ?></th>
                    <th><?php __('Updated'); ?></th>
                    <th><?php __('Regular Transaction Id'); ?></th>
                    <th><?php __('Post Date'); ?></th>
                    <th class="actions"><?php __('Actions'); ?></th>
                </tr>
    <?php
    $i = 0;
    foreach ($regularTransaction['Transaction'] as $transaction):
        $class = null;
        if ($i++ % 2 == 0) {
            $class = ' class="altrow"';
        }
        ?>
                    <tr<?php echo $class; ?>>
                        <td><?php echo $transaction['id']; ?></td>
                        <td><?php echo $transaction['user_id']; ?></td>
                        <td><?php echo $transaction['account_id']; ?></td>
                        <td><?php echo $transaction['name']; ?></td>
                        <td><?php echo $transaction['amount']; ?></td>
                        <td><?php echo $transaction['verified']; ?></td>
                        <td><?php echo $transaction['created']; ?></td>
                        <td><?php echo $transaction['updated']; ?></td>
                        <td><?php echo $transaction['regular_transaction_id']; ?></td>
                        <td><?php echo $transaction['post_date']; ?></td>
                        <td class="actions">
        <?php echo $this->Html->link(__('View', true), array('controller' => 'transactions', 'action' => 'view', $transaction['id'])); ?>
        <?php echo $this->Html->link(__('Edit', true), array('controller' => 'transactions', 'action' => 'edit', $transaction['id'])); ?>
        <?php echo $this->Html->link(__('Delete', true), array('controller' => 'transactions', 'action' => 'delete', $transaction['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $transaction['id'])); ?>
                        </td>
                    </tr>
    <?php endforeach; ?>
            </table>
<?php endif; ?>
    </div>
</div>
